package com.txd.mofa.adapter;

import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.txd.mofa.R;
import com.txd.mofa.bean.ShaixuanBean;

public class FenxiangAdapter extends BaseQuickAdapter<ShaixuanBean, BaseViewHolder> {

    public FenxiangAdapter(int layoutResId) {
        super(layoutResId);
    }


    @Override
    protected void convert(BaseViewHolder helper, ShaixuanBean item) {

        helper.setText(R.id.tv,item.getName());

        ImageView iv = helper.getView(R.id.iv);

        iv.setImageResource(item.getPic());


    }
}
